package com.doit.day01;

import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

import java.util.ArrayList;
import java.util.HashMap;

public class _03_redisClient {
    public static void main(String[] args) {


        Jedis jedis = new Jedis("linux01", 6379);
        //拿着对象去调用方法
        jedis.setex("abc",20,"hehe");

        JedisPool jedisPool = new JedisPool("linux01", 6379);
        Jedis resource = jedisPool.getResource();

    }
}
